working first draft of index template