changes index to html