restoring previous stable version to head
Merge branch 'tmp'
restoring previous ui.py version that i fully understand (but does not
fully work)