moved page_class var to controller