 module.exports =
   activate: ->
     hostView = null
+    participantViews = {}
 
     if atom.getLoadSettings().sessionId
       session = atom.guestSession

  createParticipant: (session, participant) ->
    view = new ParticipantView(session, participant)
    view.attach()

  handleEvents: (session) ->
    copySessionId = ->

      @handleEvents(session)

    session.on 'participant-entered', (participant) =>
      view = @createParticipant(session, participant)
      participantViews[participant.id] = view

    session.on 'participant-exited', (participant) =>
      view = participantViews[participant.id]
      view.detach()

    rootView.eachPane (pane) ->
      setTimeout ->
