response logic working for quizzes