created manager class inbetween repository and controller