Updated the index with the content of the current page.