index template rework