 
 ;; live mode
 
-(def live-mode-running (atom false))
-
-(defn need-new-win? [] 
-      (if-not @snap-window true
-    (let [old-height (.get (.getSummaryMetadata @snap-window) "Height")
-          old-width (.get (.getSummaryMetadata @snap-window) "Width")
-          old-pixel-type (.get (.getSummaryMetadata @snap-window) "PixelType")
-          old-binning (.get (.getSummaryMetadata @snap-window) "Binning")
-          new-height (core getImageHeight)
-          new-width (core getImageWidth)
-          new-pixel-type (get-pixel-type)
-          new-binning (core getProperty (core getCameraDevice) "Binning")]
-      (or (not= old-height new-height) (not= old-width new-width) 
-          (not= old-pixel-type new-pixel-type) (not= old-binning new-binning)   ))))
-    
-                         
+(def live-mode-running (ref false))
 
 (defn enable-live-mode [^Boolean on]
   (if on
     (let [event (create-basic-event)
           state (create-basic-state)
-          start-time (jvm-time-ms)   ]
-     (when (need-new-win?)
-        (when @snap-window 
-         (.close @snap-window) ) )
-      (reset! live-mode-running true)
+          start-time (jvm-time-ms)]
+      (dosync (ref-set live-mode-running true))
       (core startContinuousSequenceAcquisition 0)
       (log "started sequence acquisition")
       (.start (Thread.

                                         ProcessorStack SequenceSettings MMImageCache
                                         TaggedImageStorageRam VirtualAcquisitionDisplay]
           [org.micromanager.utils ReportingUtils]
           [mmcorej TaggedImage Configuration Metadata MMCoreJ]
           [java.util.prefs Preferences]
           [java.net InetAddress]
           [java.util.concurrent TimeUnit CountDownLatch]

		summary-metadata (make-summary-metadata summary)
		cache (doto (MMImageCache. (TaggedImageStorageRam. summary-metadata))
						(.setSummaryMetadata summary-metadata))]
		(doto (VirtualAcquisitionDisplay. cache nil)
                           (.promptToSave false)
                           (initialize-display-ranges))))

