wrote the assignments view; getting 500 error for some reason