added onActivateEvent callbacks to adding/removal of objects