added index page pagination