refactor html() and style()