query inside the document when jumping to page