         # the button toggles the "settings" screen
         if @props.layout.firstPanel.action is 'settings' or
            @props.layout.secondPanel?.action is 'settings'
+            settingsClass = 'active'
             settingsUrl = selectedAccountUrl
         else
+            settingsClass = ''
             settingsUrl = @buildUrl
                 direction: 'first'
                 action: 'settings'

            'col-xs-4 col-md-1': true

        div id: 'menu', className: classes,
            a href: composeUrl, className: 'menu-item compose-action',
                i className: 'fa fa-edit'
                span className: 'item-label', t 'menu compose'

            ul id: 'account-list', className: 'list-unstyled',
                @props.accounts.map (account, key) =>
                    @getAccountRender account, key
                .toJS()

            a href: newMailboxUrl, className: 'menu-item new-account-action',
                i className: 'fa fa-inbox'
                span className: 'item-label', t 'menu account new'

            a href: settingsUrl, className: 'menu-item settings-action',
                i className: 'fa fa-cog'
                span className: 'item-label', t 'menu settings'


               not Immutable.is(nextProps.unreadCounts, @props.unreadCounts)

    render: ->


        if @props.accounts.length
            selectedAccountUrl = @buildUrl
                direction: 'first'
                action: 'account.mailbox.messages'
                parameters: @props.selectedAccount?.get 'id'
                fullWidth: true
        else
            selectedAccountUrl = @buildUrl
                direction: 'first'
                action: 'account.new'
                fullWidth: true

        # the button toggles the "compose" screen
        if @props.layout.firstPanel.action is 'compose' or
           @props.layout.secondPanel?.action is 'compose'
            composeClass = 'active'
            composeUrl = selectedAccountUrl
        else
            composeClass = ''
            composeUrl = @buildUrl
                direction: 'second'
                action: 'compose'
                parameters: null
                fullWidth: false

        # the button toggle the "new account" screen
        if @props.layout.firstPanel.action is 'account.new'
            newMailboxClass = 'active'
            newMailboxUrl = selectedAccountUrl
        else
            newMailboxClass = ''
            newMailboxUrl = @buildUrl
                direction: 'first'
                action: 'account.new'
