fix routes
fix errors in controller