Page templates are refactored.