added click events to paging