Refactor QuizCtrl