   events:
     'click .js-acceptChat': 'acceptChat'
     'click .js-settings': 'settings'
+
+  elements:
+    '.js-acceptChat': 'acceptChat'
+    '.js-badgeWaitingCustomers': 'badgeWaitingCustomers'
+    '.js-badgeChattingCustomers': 'badgeChattingCustomers'
+    '.js-badgeActiveAgents': 'badgeActiveAgents'
+    '.chat-workspace': 'workspace'
 
   sounds:
     chat_new: new Audio('assets/sounds/chat_new.mp3')

      removeCallback: @removeChat
      messageCallback: @updateNavMenu

    @$('.chat-workspace').append chat.el
    chat.render()
    @chatWindows[session.session_id] = chat



  updateMeta: =>
    if @meta.waiting_chat_count && @maxChatWindows > @windowCount()
      @acceptChat.addClass('is-clickable is-blinking')
      @idleTimeoutStart()
    else
      @acceptChat.removeClass('is-clickable is-blinking')
      @idleTimeoutStop()

    @badgeWaitingCustomers.text(@meta.waiting_chat_count)
    @badgeChattingCustomers.text(@meta.running_chat_count)
    @badgeActiveAgents.text(@meta.active_agent_count)

    # reopen chats
    if @meta.active_sessions
