added register controller and route for it