pagination links work now with search criteria