fix pages template and rename folder to pages