Modularize file dialogs