rename index from template