refactor controller logic into pomodoro service