Update the index file