add base and index templates