update event is almost working