Wired up the page number selection.