finish the index paging