added paging controls