added onAdd and onRemove callbacks for ObjectManager and MultiObjectManager