modify ydialog demo