added pagination mixin
changed model to use the mixin