added pages controller