pagination added to flows