teacher controller