build up gui for client and server