[imp][libraries] use overridable layouts for pagination