change to html and array for index page