Improve pager customization

Light version of #11747, without any huge changes.