modified index page to show appropriate data