add paginate for model instances