update event handlers