Changing the index and the content displayed on the page