make sure the delete event is triggered AFTER the element has been
deleted