slight changes to View.php