Create mixin for paginator