add options to to_html methods