update teacher view