cleaned up controller functions for quizzes