html builder cleanup