Small refactoring of main window, propriet opening new export setting window, add some opening dialogs.