refactor all index pages for navigation