unified pagination, improved doc chooser