Update README.md

update event handling code sample.