api updates for pagination