update core/view.php