title: How to use same form code for add,update
body: <h1>test.kv</h1>
  <h1>:kivy 1.10.0</h1>
  <pre><code>&lt;CRUD&gt;:
      title: self.mode + &quot; State&quot;
      size_hint: None, None
      size: 350, 350
      auto_dismiss: False
  
      BoxLayout:
          orientation: &quot;vertical&quot;
          GridLayout:
              cols: 2
              Label:
                  text: root.label_rec_id
              Label:
                  id: userid
                  text: root.col_data[0]  # root.userid
              Label:
                  text: &quot;First Name&quot;
              TextInput:
                  id: fname
                  text: root.col_data[1]  # root.fname
              Label:
                  text: &quot;Last Name&quot;
              TextInput:
                  id: lname
                  text: root.col_data[2]  # root.lname
          Button:
              size_hint: 1, 0.4
              text: &quot;Save Changes&quot;
              on_release:
                  root.package_changes(fname.text, lname.text)
                  app.root.update_changes(root)
                  root.dismiss()
          Button:
              size_hint: 1, 0.4
              text: &quot;Cancel Changes&quot;
              on_release: root.dismiss()
  </code></pre>
  <ol>
  <li>when click on any row then edit form open.Can i use same form for add user.<br/><br/></li>
  </ol>
  <p>At this time i click on add user then user.py file run and open a new form.how to use same form for both add update.<br/><br/></p>