use per_page instead of rows for pagination