add base template support for all pages