rename triggerEvent to dispatch