Moved page composition to public function that can be used to dynamically expand views