update index and show pages layout