implementing alert for deletion