small cleanup of view.php