Search method and pagination implmented