Make first version of file selection dialog work