modify teacher and edit the lessontable