Reconstruct layout and css