refactor grocery list controller and service