Dialogs, various fixes