update teacher views