changing index page
refactor index