fix pageController declaration