added HTML check code