edit pages controller and views