improve file selection dialog on load files
added functionality to file->exit