update refs for pagination