Fix view permissions for secretary
Clear students and teachers when changing the class