open file dialog if no file was passed as an argument