Added a confirmation to delete event function