       }]
     else
       # Logged out user can only log in
-      ideMenu.submenu = [{
+      devMenu.submenu = [{
         label: 'Log in to Spark Cloud...',
         command: 'spark-dev:login'
       }]
 
-    ideMenu.submenu = ideMenu.submenu.concat [{
+    devMenu.submenu = devMenu.submenu.concat [{
       type: 'separator'
     },{
       label: 'Show serial monitor',

module.exports =
  # Get root menu
  getMenu: ->
    ideMenu = atom.menu.template.filter (value) ->
      value.label == 'Spark'

    ideMenu[0]

  # Update menu
  update: ->
    ideMenu = @getMenu()

    if SettingsHelper.isLoggedIn()
      # Menu items for logged in user
      username = SettingsHelper.get('username')

      ideMenu.submenu = [{
        label: 'Log out ' + username,
        command: 'spark-dev:logout'
      },{

          command: 'spark-dev:flash-cloud'
        }]

      devMenu.submenu = devMenu.submenu.concat [{
        type: 'separator'
      },{
        label: 'Claim device...',
