Reformatting index template