Update viewfile.php