refactor and articles infinite pagination