changed the way values are passed to the controller from the route