Replace old index file