Register event method