Call output_html()
html organization changes
Added mode output