   componentDidMount: ->
     window.addEventListener 'poi.alert', @handleAlert
     window.addEventListener 'alert.change', @alertWidthChange
-    window.addEventListener 'theme.change', @handleThemeChange
+    window.addEventListener 'theme.change', @handleStyleChange
     @alertWidth = document.getElementById('alert-container').offsetWidth
     @message = @state.message
     @messageOld = @message

    @setState
      showHistory: !@state.showHistory

  handleThemeChange: ->
    setTimeout =>
      try
        alertHeight = $('poi-control').offsetHeight

      @messageOld = @message
      @messageType = e.detail.type
      @updateAlert()
      @handleStyleChange()
    else if !@dontReserve
      history = @state.history
      history.push <div key={keyCount++} className='alert alert-default alert-history-contents'>{@lastMessage}</div>
