refactor index page html