Update viewall.php