adding mutation observer

listening to DOM events