added paging control