update event handler