Fixed problems with new student view
Finished function