implement view and added pages to page.php