refactor(index) pagination