adjusted routing for pagination