update the dialog