Updated index page for pagination