handle file browser for mac