     connectedManagedMachine: EnvironmentFlux.getters.connectedManagedMachine
 
 
+  onClose: ->
+
+    @removeFromStore()
+
   removeFromStore: ->
 
     kd.utils.defer =>


    provider = if PROVIDERS[connectedMachine.providerName] then connectedMachine.providerName else 'UnknownProvider'

    <SidebarWidget {...@props} onClose={@bound 'removeFromStore'}>
      <div className='header'>
        <h1>Congratulations</h1>
      </div>
      <span className='close-icon'></span>
      <div className='main-wrapper'>
        <div className='image-wrapper'>
        </div>


  handleButtonClick: ->

    { router } = kd.singletons
    currentPath = router.getCurrentPath()
    newPath = "/IDE/#{@props.machine.get('slug')}"

    @removeFromStore()
    router.handleRoute newPath  unless newPath is currentPath


  componentWillMount: ->

    kd.singletons.router.handleRoute "/IDE/#{@props.machine.get('slug')}"


