Fix view.php