adding handler to app