updated teacher security in views