fixing AJAX search problems when paging or using back button