Made professor view page function