clean up html.tpl with section and remove antiquated pageError