cleaned up AssignmentsView code