API function call open and save as dialog