replaced methods in controller by a reuseable service