added a toggle for both student/instructor to switch between icon and detail views