View/homework.php cleanup part 1