Updated page view and controller to use page class.