push event handler definitions outside bindHandlers