dialogs and their results are now returned properly