       return workspaces.splice index, 1
 
 
+  handleMachineLabelUpdated: (label, slug) ->
+
+    environmentDataProvider.fetch =>
+      { router, appManager, mainView } = kd.singletons
+
+      mainView.activitySidebar.redrawMachineList()
+
+      frontApp      = appManager.getFrontApp()
+      isIDE         = frontApp.options.name is 'IDE'
+      wsData        = frontApp.workspaceData
+      isSameMachine = wsData.machineUId is @machine.uid
+
+      if isIDE and wsData and isSameMachine
+        router.handleRoute "/IDE/#{slug}/#{wsData.slug}"
+
+
   watchMachineState: ->
 
     { Stopping, Terminating, Terminated } = Machine.State

    @createWorkspacesLabel()
    @createWorkspacesList()
    @watchMachineState()


  createWorkspacesList: ->

MoreWorkspacesModal = require 'app/activity/sidebar/moreworkspacesmodal'
AddWorkspaceView = require 'app/addworkspaceview'
IDEAppController = require 'ide'
environmentDataProvider = require 'app/userenvironmentdataprovider'


module.exports = class SidebarMachineBox extends KDView
