def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def main(self):
      UI.OpenDialog(
        VBox(
          Heading("This Is a Heading."),
          Label("This is a Label."),
          PushButton("&OK")
        )
      )
      UI.UserInput()
      UI.CloseDialog()