changed a controller and routes