alert and close dialogs when no accessions to add