ClientGui.py revised