factored out global activeQuiz variable