UI reworked for Python2.7 and errors fixed