added condition for when there are no exams to view