worked on demo for event handlers