    //vlayout to widget
    QWidget* settingsWidget = layoutToWidget(vlayout, this);
    settingsWidget->setStyleSheet("margin-left: 40px; margin-right: 40px;");
    s->addWidget(settingsWidget);
    s->setCurrentIndex(1);
  
    ssh = new SSH;
    connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(1);});
    s->addWidget(ssh);
  
 
</s> remove   //vlayout to widget
 </s> add   // vlayout to widget </s> remove   connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(1);});
 </s> add   connect(ssh, &SSH::closeSSHSettings, [=](){s->setCurrentIndex(0);}); </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 }

void Networking::successfulConnection(QString ssid) {
  //Maybe we will want to do something here in the future.
}

void Networking::sidebarChange(){
  if (s == nullptr || an == nullptr){
    return;
  }

  s->setCurrentIndex(1);
  an->s->setCurrentIndex(1);
  refresh();
 </s> add   */ </s> remove   //Authorized SSH keys
 </s> add   // SSH keys
    //vlayout to widget
    QWidget* settingsWidget = layoutToWidget(vlayout, this);
    settingsWidget->setStyleSheet("margin-left: 40px; margin-right: 40px;");
    s->addWidget(settingsWidget);

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