created the controller for problems and fixed the routes