changed controller and routes