how to add text entered in one dialog to another dialog's listbox