make CSV downloads respect pagination