Click events on pagination now works