changes to professor view and added extra functionality