changes delete event to cancel event
build