Event handler improvements.
Fixing up the todo example.