Added update functions to teacher_views.py. Needs to be looked at