reconstruct the structure of the gui client side