update route and controller