writing a GUI for the ChatServer