fixing multiple event binding and changed pagination links to arrows for simplicity