Put the server output back on the gui
Refactor anonymous class to nested