Update (and correct) WidgetEvents Sample

Previous version was a quick and dirty one, and not one I'd really like to see as a Sample!
This one is better style and works properly as well!