the use can add a reference to the dialog to get it back when the dialog close