       (b/transform widget-model-count (id :vars-lb))
       (id :vars-entries-lbl))
     ;; new ns selected in ns-lb =>
-    ;; dis/enable require-btn, update fqn in doc-tf
+    ;; dis/enable require-btn, update fqn in doc-tf, scroll within view
     (b/bind
       (b/selection (id :ns-lb))
         (b/tee
           (b/bind
             (b/transform (fn [ns]
+              (ensure-selection-visible (id :ns-lb))
               (if (and ns (some #(= ns %) @all-ns-unloaded-atom))
                 true
                 false)))

          vars-lb-popup (popup :id :vars-lb-popup)

          ]
      
      (config! root :menubar main-menu)


    (swap! vars-lb-refresh-atom not)
    (when-not (= (selection (id :ns-lb)) selected-ns) (selection! (id :ns-lb) selected-ns))
    (selection! (id :vars-lb) selected-var)
    (ensure-selection-visible (id :ns-lb))
    (ensure-selection-visible (id :vars-lb))
    {:root root :selected-ns selected-ns :selected-var selected-var}))

;;seesaw.core/toggle-full-screen! (locks up computer!!! don't use)
