Implement jquery plugin for paging