update dialog.php