Delete event

this fixes the delete event issue