pagination issues with search 'mode'