refactor index page for navigation