rewrite HTML to not be so ugly