          (for [mt o2registers]
            ^{:key (.-id mt)} [:tr
                               [:td (.-serialnumber mt)]
-                              [:td (.-tehsil mt)]
+                              [:td (.-subdivisionname mt)]
                               [:td (.-dateofinstitution mt)]
                               [:td (.-sourceofreceipt mt)]
                               [:td (.-villagename mt)]

       [:table {:class "table table-bordered table-striped dataTable"}
        [:thead
         [:tr
          [:th "Tehsil"]
          [:th "Khata Khatuni Number"]
          [:th "Number and Date of Order"]
          [:th "Khasra Number"]

  (let [add-data (r/atom {:isactive true})
        focus (r/atom nil)]
    (fn [] [o2register-template 
           "o2register Add Form" 
           add-data focus
           #(o2register-add-form-onclick add-data focus)])))

(defn o2register-update-template [id dmt]
  (let [update-data (r/atom {:id (int id)
                             :o2number (.-o2number dmt)
                             :serialnumber (.-serialnumber dmt)
                             :dateofinstitution (.-dateofinstitution dmt)
                             :villageid (.-villageid dmt)
                             :villagename (.-villagename dmt)
                             :subdivisionname (.-subdivisionname dmt)
                             :sourceofreceipt (.-sourceofreceipt dmt)
                             :nameofthefirstparty (.-nameofthefirstparty dmt)
                             :dateofreceiptfrompanchayat (.-dateofreceiptfrompanchayat dmt)
