cleaned up lessonscontroller