    s->addWidget(settingsWidget);
    s->setCurrentIndex(1);
  
    ssh = new SSH;
    connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(1);});
    s->addWidget(ssh);
  
    setLayout(s);
  }
  
 
</s> remove   s->setCurrentIndex(1);
 </s> add  </s> remove   //vlayout to widget
 </s> add   // vlayout to widget </s> remove   connect(an, &AdvancedNetworking::backPress, [=](){s->setCurrentIndex(1);});
  connect(an, &AdvancedNetworking::openKeyboard, [=](){emit openKeyboard();});
  connect(an, &AdvancedNetworking::closeKeyboard, [=](){emit closeKeyboard();});
 </s> add   connect(an, &AdvancedNetworking::backPress, [=](){s->setCurrentIndex(0);}); </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> remove void Networking::abortTextInput(){
  s->setCurrentIndex(1);
    emit closeKeyboard();
}

void Networking::receiveText(QString text) {
  wifi->disconnect();
  wifi->connect(selectedNetwork, text);
  s->setCurrentIndex(1);
  emit closeKeyboard();
}

 </s> add 
  connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(0);});
    s->addWidget(settingsWidget);
    s->setCurrentIndex(1);
  
    ssh = new SSH;
  connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(0);});
    s->addWidget(ssh);
  
    setLayout(s);
  }
  
keep keep keep keep replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc