added associations to lessons and fixed form