implemented deletion of entities and the import dialog closes when done