changed the pre/post delete event to include the entity