It would be nice if one can return a value selected in the dialog (in the success function for example).