Changed pagination to class rather than id.