track the current per page setting in the search context parameters

fixes #839