view logic for student to take quiz functional