tried to fix addHomework, made progress but still glitchy