diff --git a/odmlui/editor.py b/odmlui/editor.py
index fe72a33..693e892 100644
--- a/odmlui/editor.py
+++ b/odmlui/editor.py
@@ -5,9 +5,15 @@
from distutils.version import LooseVersion as CheckVer
+import time
+import threading
+from gi.repository import GLib, GObject
+
import pygtkcompat
from odml.property import BaseProperty
+import odml.terminology as terminology
+from odml.terminology import cache_load
import odmlui.treemodel.mixin
from odmlui.info import AUTHOR, CONTACT, COPYRIGHT, HOMEPAGE, VERSION, ODMLTABLES_VERSION
@@ -23,7 +29,7 @@
from .helpers import uri_to_path, get_extension, get_parser_for_file_type, \
get_parser_for_uri, get_conda_root, run_odmltables
from .info_bar import EditorInfoBar
-from .message_dialog import DecisionDialog
+from .message_dialog import DecisionDialog, WaitDialog
from .navigation_bar import NavigationBar
from .property_view import PropertyView
from .scrolled_window import ScrolledWindow
@@ -33,7 +39,7 @@
pygtkcompat.enable()
pygtkcompat.enable_gtk(version='3.0')
-gtk.gdk.threads_init()
+GObject.threads_init()
UI_INFO = \
'''
@@ -64,6 +70,7 @@
+