             [:div.panel-heading
               [:h3.panel-title "Select a Database"]]
             [:div.panel-body
-              (linked-items (map linkify-db dbs))]]]]
-      (common-footer)]))
+              (linked-items (map linkify-db dbs))]]]
+        (common-footer)]]))
 
 (defn database-view [db colls]
   (html

            [:div.panel-heading
              [:h3.panel-title "Select a Collection"]]
            [:div.panel-body
              (linked-items (map #(linkify-coll db %) colls))]]]]
      (common-footer)]))
            [:div#rawquery.tab-pane
              [:pre#query {:style "text-align: left;"}]]
            [:div#queryresults.tab-pane
              [:pre#results {:style "text-align: left;"}]]]]
        (common-footer)]]))

(defn instance-view [dbs]
  (html
