add event handling to app object