routeHandler method update