fix view.php