         App.Collection.loadAssets(data.assets)
       @meta = data
       @updateMeta()
-      if !@pushStateStarted
-        @pushStateStarted = true
-        @interval(@pushState, 30000, 'pushState')
+      if @pushStateIntervalOn is undefined
+        @startPushState()
     )
 
     # add new chat window

    if state is undefined
      return @meta.active

    # check if min one chat is active
    if state
      preferences = @Session.get('preferences')
      if !preferences || !preferences.chat || !preferences.chat.active || _.isEmpty(preferences.chat.active)
        @notify(
          type: 'error'
          msg:  App.i18n.translateContent('To be able to chat you need to select min. one chat topic in settings!')
        )

    @meta.active = state

    # write state
    App.WebSocket.send(
      event:'chat_agent_state'
      data:
        active: @meta.active
    )

  updateNavMenu: =>
    delay = ->

    if preferences && preferences.chat && preferences.chat.max_windows
      @maxChatWindows = parseInt(preferences.chat.max_windows)

    @pushStateIntervalOn = undefined
    @messageCounter = 0
    @meta =
      active: false
