introduced update event as suggested by @mweibel