pages controller fixed