Add an edit box to the dialog and add associated variables to it