       @sessionId = @joinView.miniEditor.getText()
       keys = @sessionId.split("-")
       [@app_key, @app_secret] = [keys[0], keys[1]]
-
-      # takenColour = @colours[keys[3]]
-      # @assignColour(takenColour)
-
       @joinPanel.hide()
 
       atom.workspace.open().then => @startPairing() #starts a new tab to join pairing session

    @pairingChannel.unsubscribe()
    @markerColour = @colours[@membersCount]
    @subscribeToPusher()
    @listenForEvents()

  subscribeToPusher: ->
    @pusher = new Pusher @app_key,

          @updateCollaboratorMarker(event)
      )

    @pairingChannel.bind 'pusher:member_removed', (member) =>
      @clearMarkers(member.id)
      disconnectView = new AlertView "Your pair buddy has left the session."
      atom.workspace.addModalPanel(item: disconnectView, visible: true)

