Putting page finding into its own function
Configuration and rendering of the page nav