update the index with content