gui connected to sockets