completed refactoring of quiz controller and associated methods from service