makes controls able to listen to inserted and removed