close popup when file type is wrong
Merge pull request #5 from SaschaNaz/master

close popup when file type is wrong