  
  // AdvancedNetworking functions
  
  AdvancedNetworking::AdvancedNetworking(QWidget* parent, WifiManager* wifi): QWidget(parent), wifi(wifi){
    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);
  
    QVBoxLayout* vlayout = new QVBoxLayout;
  
    //Back button
    QHBoxLayout* backLayout = new QHBoxLayout;
 
</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   connect(wifi, SIGNAL(successfulConnection(QString)), this, SLOT(successfulConnection(QString)));

 </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   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);
 </s> add   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);
  }
  s = new QStackedLayout; // mainPage, SSH settings
  
  // AdvancedNetworking functions
  
  AdvancedNetworking::AdvancedNetworking(QWidget* parent, WifiManager* wifi): QWidget(parent), wifi(wifi){
  s = new QStackedLayout; // mainPage, SSH settings
  s = new QStackedLayout; // mainPage, SSH settings
  s = new QStackedLayout; // mainPage, SSH settings
  s = new QStackedLayout; // mainPage, SSH settings
  s = new QStackedLayout; // mainPage, SSH settings
  s = new QStackedLayout; // mainPage, SSH settings
  
    QVBoxLayout* vlayout = new QVBoxLayout;
  
    //Back button
    QHBoxLayout* backLayout = new QHBoxLayout;
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc