change ui.panelSave('youtube', webApp); to webApp = Config(Panel({ panelId: 'youtube }, .... ui.panelSave(webApp, optionalId), where panel id is read from panel if not explicity given