amended echo to print for consistency in view.php