Update dialog.php