     """
 
 
-  notify = do ->
+  notify: do ->
 
     notification = null
 

      {recentState} = osKite
      if recentState?.state is 'RUNNING'
      then @prepareAndRunTerminal vm
      else notify cssClass : 'error'

  prepareAndRunTerminal: (vm, mode = 'create') ->
    {vmController} = KD.singletons
    osKite = 
      if KD.useNewKites
      then vmController.kites.oskite[vm.hostnameAlias]
      else vmController.kites[vm.hostnameAlias]
  
    {recentState}  = osKite

    if recentState?.state is 'RUNNING'

              @createNewTab {vm: vmList[alias], session: sessionId, mode: 'resume'}

          unless sessionRestored
            @notify
              title     : "Your previous sessions are no longer online since your VM is turned off due to inactivity. \
                           If you want always on VMs, you can upgrade your plan"
              cssClass  : "fail"
