add unload dialogs checks