make paginator in ?r=page