default pagination concern and using it in contract.rb & model.rb