UI for pagination.