Add update event handler