loading the search query obj with pageType for history