adding a notify when an element has been deleted