Update preview.php