before clear HTML