group MDL-19798 Updated print_header and build_navigation to OUTPUT and PAGE equivalents