 
     modal.once 'KDModalViewDestroyed', -> callback? destroy: yes
 
-    @dialogIsOpen = yes
-    modal.once 'KDModalViewDestroyed', => @dialogIsOpen = no
-
   # there may be a better place for these who methods below - SY
 
   fetchVMPlans: (callback) ->

    super

    @kc = KD.getSingleton("kiteController")
    @dialogIsOpen = no
    @resetVMData()

    KD.getSingleton('mainController')

            modal.destroy()
            callback no

  askToTurnOn:(options, callback)->

    [options, callback] = [callback, options]  if typeof options is "function"
    {appName, vmName, state} = options

    title   = "Your VM is turned off"
    content = """To #{if appName then 'run' else 'do this'} <b>#{appName}</b>
