updated pages controller and views