added alert dialogs when deleting