Pagination to button group.