fixed view.php