fix to insure window won't load if there is no file selected