update controller method of Teacher