Made paging use ajax