format view.php and viewall.php;