changing the teacher window