when remove an object, can remove eventlistener together