improved dialog for file type