using get method for filtering and paginating