handle back button for paging through search results