Changed pagination to .CSV file