updated controller to pass around the collectiong and define in the beging and thus my tests have access to the collection of entries