update the functionality of the quiz.