tidy gui.py a bit. also LINES