pagination done
dry backend and fix pagination mixin