   showChat: ->
 
     switch @stateMachine.state
-      when 'Active'
-       @showChatPane()
-      when 'NotStarted'
-        @prepareChatSession
-          success : => @stateMachine.transition 'Prepared'
-          error   : => # @stateMachine.transition 'ErrorPreparing'
+      when 'Active' then @showChatPane()
+      when 'NotStarted' then @stateMachine.transition 'Preparing'
 
 
   stopCollaborationSession: ->

        Loading      : => kd.utils.defer => @onCollaborationLoading()
        Resuming     : @bound 'onCollaborationResuming'
        NotStarted   : @bound 'onCollaborationNotStarted'
        Prepared     : @bound 'onCollaborationPrepared'
        Creating     : @bound 'onCollaborationCreating'
        Active       : @bound 'onCollaborationActive'

          @workspaceData.channelId = channel.id
          @chat.ready => callbacks.success()
        .error (err) => callbacks.error err


  onCollaborationPreparing: ->

    @prepareChatSession
      success : => @stateMachine.transition 'Prepared'
      error   : => @stateMachine.transition 'ErrorPreparing'


  onCollaborationPrepared: ->
