Modified the template of index