fix and update pages template layout.