removing excess htmls