moved pagination logic from mailOverviewCtrl to own directive