small updates for pagination