refactoring Phalanx + PhalanxPager classes