updates the jump-to-page-then-scroll function