erase sets attributes, improved html-rendering