added support for PyQt5 based UI.