added delete alert functionality