BROKEN. Created ui package. Added assertions to hunt bug discovered with GoGui.