changed the controller to have objets returned