page controller formatting