                   type: 'radio'
                   checked: viewstate.fontSize == 'x-small'
                   click: -> action 'changefontsize', 'x-small'
-              }, {
+              }
+              {
                   label: 'Small'
                   type: 'radio'
                   checked: viewstate.fontSize == 'small'
                   click: -> action 'changefontsize', 'small'
-              }, {
+              }
+              {
                   label: 'Medium'
                   type: 'radio'
                   checked: viewstate.fontSize == 'medium'
                   click: -> action 'changefontsize', 'medium'
-              }, {
+              }
+              {
                   label: 'Large'
                   type: 'radio'
                   checked: viewstate.fontSize == 'large'
                   click: -> action 'changefontsize', 'large'
-              }, {
+              }
+              {
                   label: 'Extra Large'
                   type: 'radio'
                   checked: viewstate.fontSize == 'x-large'
                   click: -> action 'changefontsize', 'x-large'
               }
             ]
-        }, {
-            label: 'Toggle Full Screen',
-            accelerator: getAccelerator('togglefullscreen'),
-            click: -> action 'togglefullscreen'
-        }, {
-            # seee https://github.com/atom/electron/issues/1507
-            label: 'Zoom In',
-            accelerator: getAccelerator('zoomin'),
-            click: -> action 'zoom', +0.25
-        }, {
-            label: 'Zoom Out',
-            accelerator: getAccelerator('zoomout'),
-            click: -> action 'zoom', -0.25
-        }, {
-            label: 'Reset Zoom',
-            accelerator: getAccelerator('resetzoom'),
-            click: -> action 'zoom'
-        }, {
-            type: 'separator'
-        }, {
+        }
+        { role: 'togglefullscreen' }
+        { role: 'zoomin' }
+        { role: 'zoomout' }
+        { role: 'resetzoom' }
+        { type: 'separator' }
+        {
             label: 'Previous Conversation',
             accelerator: getAccelerator('previousconversation')
             enabled: viewstate.loggedin
             click: -> action 'selectNextConv', -1
-        }, {
+        }
+        {
             label: 'Next Conversation',
             accelerator: getAccelerator('nextconversation')
             enabled: viewstate.loggedin
             click: -> action 'selectNextConv', +1
-        }, {
+        }
+        {
             label: 'Select Conversation',
             enabled: viewstate.loggedin
             submenu: [

    conversation7: {default: 'Alt+7', darwin:'Command+7'}
    conversation8: {default: 'Alt+8', darwin:'Command+8'}
    conversation9: {default: 'Alt+9', darwin:'Command+9'}
    minimize: {default: '', darwin:'Command+M'}
    close: {default: '', darwin:'Command+W'}
}

getAccelerator = (key) ->


templateEdit = (viewstate) ->
    [
        { role: 'undo' }
        { role: 'redo' }
        { type: 'separator' }
        { role: 'cut' }
        { role: 'copy' }
        { role: 'paste' }
        { role: 'selectall' }
    ].filter (n) -> n != undefined

templateView = (viewstate) ->
