Working connection to server from GUI, now I need to incorporate my other code into this repo