Fixed pageController so that it can have pluggable rendering, not per page rendering