frontend paging example