Move open dialog into its own file