add event for add and remove