added way for gui to get the data from the server