update event handling