    alerts_layout->setSpacing(30);
    alerts_widget->setLayout(alerts_layout);
    alerts_widget->setStyleSheet("background-color: transparent;");
  
    // setup labels for each alert
    QString json = QString::fromStdString(util::read_file("../controls/lib/alerts_offroad.json"));
    QJsonObject obj = QJsonDocument::fromJson(json.toUtf8()).object();
    for (auto &k : obj.keys()) {
      QLabel *l = new QLabel(this);
      alerts[k.toStdString()] = l;
      int severity = obj[k].toObject()["severity"].toInt();
  
      l->setMargin(60);
      l->setWordWrap(true);
      l->setStyleSheet("background-color: " + QString(severity ? "#E22C2C" : "#292929"));
      l->setVisible(false);
      alerts_layout->addWidget(l);
    }
  
    alerts_layout->addStretch(1);
  
    // release notes
    releaseNotes.setWordWrap(true);
    releaseNotes.setVisible(false);
    releaseNotes.setStyleSheet("font-size: 48px;");
    releaseNotes.setAlignment(Qt::AlignTop);
 
</s> remove   QWidget *alerts_widget = new QWidget;
  QVBoxLayout *alerts_layout = new QVBoxLayout;
 </s> add   QWidget *alerts_widget = new QWidget(this);
  alerts_layout = new QVBoxLayout; </s> remove   bool metric = Params().getBool("IsMetric");
 </s> add  </s> remove   refresh(); // don't wait for the first refresh
 </s> add }

void PairingQRWidget::showEvent(QShowEvent *event){
  refresh(); </s> remove   QString IMEI = QString::fromStdString(Params().get("IMEI"));
  QString serial = QString::fromStdString(Params().get("HardwareSerial"));
 </s> add   Params params;
  QString IMEI = QString::fromStdString(params.get("IMEI"));
  QString serial = QString::fromStdString(params.get("HardwareSerial"));
    alerts_layout->setSpacing(30);
    alerts_widget->setLayout(alerts_layout);
    alerts_widget->setStyleSheet("background-color: transparent;");
  

















    // release notes
    releaseNotes.setWordWrap(true);
    releaseNotes.setVisible(false);
    releaseNotes.setStyleSheet("font-size: 48px;");
    releaseNotes.setAlignment(Qt::AlignTop);
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 UI: fast startup (#20781)

* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/widgets/offroad_alerts.cc