added handleQuizUpdate handler