fixed the assignments form and some methods in the controller