update controller register teacher