     @settingsIcon = new KDCustomHTMLView
       tagName     : 'span'
       click       : (e) =>
-        if @machine.isMine() then @handleMachineSettingsClick e
-        else if @machine.isApproved() then @showSidebarSharePopup {}, e
+        kd.utils.stopDOMEvent e
+        if @machine.isMine() then @handleMachineSettingsClick
+        else if @machine.isApproved() then @showSidebarSharePopup {}
 
 
   createSettingsIconPlaceholder: ->

    return state in [ NotInitialized, Running, Stopped, Terminated, Unknown ]


  handleMachineSettingsClick: (event) ->

    return  if not @settingsEnabled()

    kd.utils.stopDOMEvent event

    new MachineSettingsModal {}, @machine


    return data.workspaces.first?.channelId


  showSidebarSharePopup: (options = {}) ->

    options.position  = @getPopupPosition 20
    options.channelId = @getChannelId @getData()
