better event handling in Chitin.Widget