           [:th "Remarks"]
           [:th "Dispatched Date"]
           [:th "Received Date"]
-          [:th " "]
-          [:th " "]
+          (when (is-admin-or-super-admin) [:th " "])
+          (when (is-admin-or-super-admin) [:th " "])
           ]]
         [:tbody
-         (for [mt miscs]
-           ^{:key (.-id mt)} [:tr
-                              [:td (.-filenumber mt)]
-                              [:td (.-subject mt)]
-                              [:td (.-title mt)]
-                              [:td (.-remarks mt)]
-                              [:td (.-dispatcheddate mt)]
-                              [:td (.-receiveddate mt)]
-                              [:td [:a {:href "javascript:;"
-                                        :on-click  #(misc-update(.-id mt))
-                                        :class "btn btn-success btn-sm glyphicon glyphicon-edit"}]]
-                              [:td  [:a {:href "javascript:;" :on-click #(misc-delete(.-id mt))
-                                         :class "btn btn-danger btn-sm glyphicon glyphicon-remove"}]]])]]
+         (doall (for [mt miscs]
+                  ^{:key (.-id mt)} [:tr
+                                     [:td (.-filenumber mt)]
+                                     [:td (.-subject mt)]
+                                     [:td (.-title mt)]
+                                     [:td (.-remarks mt)]
+                                     [:td (.-dispatcheddate mt)]
+                                     [:td (.-receiveddate mt)]
+                                     (when (is-admin-or-super-admin)[:td [:a {:href "javascript:;"
+                                                                              :on-click  #(misc-update(.-id mt))
+                                                                              :class "btn btn-success btn-sm glyphicon glyphicon-edit"}]]) 
+                                     (when (is-admin-or-super-admin)[:td  [:a {:href "javascript:;" :on-click #(misc-delete(.-id mt))
+                                                                               :class "btn btn-danger btn-sm glyphicon glyphicon-remove"}]])]))]]
        [:div{:class "col-xs-6 col-centered col-max"} [shared-state 0]]]]]]])
 
 

          [:th "Year"]
          [:th "Rack Number"]
          [:th "Description"]
          [:th " "]
          [:th " "]
          ]]
        [:tbody
         (for [mt consolidations]
           ^{:key (.-id mt)} [:tr
                              [:td (.-serialnumber mt)]
                              [:td (.-villagename mt)]
                              [:td (.-subdivisionname mt)]
                              [:td (.-tehsil mt)]
                              [:td (.-year mt)]
                              [:td (.-racknumber mt)]
                              [:td (.-description mt)]
                              [:td [:a {:href "javascript:;"
                                        :on-click  #(consolidation-update(.-id mt))
                                        :class "btn btn-success btn-sm glyphicon glyphicon-edit"}]]
                              [:td  [:a {:href "javascript:;" :on-click #(consolidation-delete(.-id mt))
                                         :class "btn btn-danger btn-sm glyphicon glyphicon-remove"}]]])]]
       [:div{:class "col-xs-6 col-centered col-max"} [shared-state 0]]]]]]])

(defroute consolidation-list "/consolidation" []

        [:th "Received Date "]
        ]]
      [:tbody
       (doall (for [mt mutations]
                ^{:key (.-id mt)} [:tr
                                   (when (is-admin-or-super-admin)[:td [:a {:href "javascript:;" :on-click  #(click-update (.-id mt))  :class "btn btn-success btn-sm glyphicon glyphicon-edit"}]])
                                   (when (is-admin-or-super-admin)[:td  [:a {:href "javascript:;" :on-click #(delete(.-id mt))  :class "btn btn-danger btn-sm glyphicon glyphicon-remove"}] ])
                                   [:td (.-mutationnumber (.-numbers mt))]
                                   [:td (.-nameofthefirstparty mt)]
                                   [:td (.-nameofthesecondparty mt)]
                                   [:td (.-dateofinstitution mt)]
                                   [:td (.-nameofpo mt)]
                                   [:td (.-name (.-district  mt))]
                                   [:td (.-name (.-subdivision mt))]
                                   [:td (.-name (.-village mt))]
                                   [:td (.-o2number (.-numbers  mt))]
                                   [:td (.-o4number (.-numbers mt))]
                                   [:td (.-o6number (.-numbers mt))]
                                   [:td (.-senddate mt)]
                                   [:td (.-receiveddate mt)]
                                   ]))]]
     [:div{:class "col-xs-6 col-centered col-max"} [shared-state 0]]]]])


