Retrieves templates for each page