    inputField->setContentsMargins(100,0,100,0);
    s->addWidget(inputField);
  
    QVBoxLayout* vlayout = new QVBoxLayout;
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(2);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  
    wifiWidget = new WifiUI(0, 5, wifi);
    connect(wifiWidget, SIGNAL(connectToNetwork(Network)), this, SLOT(connectToNetwork(Network)));
    vlayout->addWidget(wifiWidget, 1);
  
 
</s> remove   inputField = new InputField(this, 8);
  connect(inputField, SIGNAL(emitText(QString)), this, SLOT(receiveText(QString)));
  connect(inputField, SIGNAL(cancel()), this, SLOT(abortTextInput()));
  inputField->setContentsMargins(100,0,100,0);
  s->addWidget(inputField);

 </s> add  </s> remove   //Back button
 </s> add   // Back button </s> remove   QPushButton* back = new QPushButton("BACK");
 </s> add   QPushButton* back = new QPushButton("Back"); </s> remove   s = new QStackedLayout;// inputField, mainPage, SSH settings
  inputField = new InputField(this, 8);
  connect(inputField, SIGNAL(emitText(QString)), this, SLOT(receiveText(QString)));
  connect(inputField, SIGNAL(cancel()), this, SLOT(abortTextInput()));
  inputField->setContentsMargins(100,0,100,0);
  s->addWidget(inputField);
 </s> add   s = new QStackedLayout; // mainPage, SSH settings
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
    inputField->setContentsMargins(100,0,100,0);
    s->addWidget(inputField);
  
    QVBoxLayout* vlayout = new QVBoxLayout;
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  if (show_advanced) {
    QPushButton* advancedSettings = new QPushButton("Advanced");
    advancedSettings->setStyleSheet(R"(margin-right: 30px)");
    advancedSettings->setFixedSize(300, 100);
    connect(advancedSettings, &QPushButton::released, [=](){s->setCurrentIndex(1);});
    vlayout->addSpacing(10);
    vlayout->addWidget(advancedSettings, 0, Qt::AlignRight);
    vlayout->addSpacing(10);
  }
  
    wifiWidget = new WifiUI(0, 5, wifi);
    connect(wifiWidget, SIGNAL(connectToNetwork(Network)), this, SLOT(connectToNetwork(Network)));
    vlayout->addWidget(wifiWidget, 1);
  
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc