Pager now accepts the object instead of its id