load dialogs with improved logic