Page navigation

Allow the user to navigate through the pages when refining search.
Okay I'll split it out into functions.