separate pagination and register.