final HTML cleanup