fixed dialogs issues