update pagination as you type