added header and footer functions in putput_html