added a pager directive, clicking on pages is working.