more improvements and fixes for the import dialog