Changed event handler to have if/else block for what type of event occured.
Currently just prints differently for a particular event.