Added delete event functionality