update pages layout