move the event handlers up a level