added event handlers examples