working client-server with gui