Fixed bugs in ui.Pager, implemented pager in editor drafts