removed the data retrieving in the controller