fix controller and routes