more updates to event handling example