updated teacher view