Pagination

pagination and a piggy-backed fix of `tab0` issues.