changes the text of the index file