debugging view.php