update pagination mechanism