trying to get message timing to work
extracted UI classed from server.py