Create an event handler
Register the event handler when the app launches