removed json from pages controller