updated template inheritance to secondary pages