         kd.utils.stopDOMEvent event
         router.handleRoute '/Account/Shortcuts'
 
-    @addSubView @share = new CustomLinkView
-      href     : "#{kd.singletons.router.getCurrentPath()}/share"
-      title    : 'Loading'
-      cssClass : 'share fr hidden'
-      click    : (event) =>
-        kd.utils.stopDOMEvent event
-
-        return  if @share.hasClass 'loading'
-        return  unless appManager.frontApp.isMachineRunning()
-
-        if @share.hasClass 'active'
-        then @handleSessionEnd()
-        else appManager.tell 'IDE', 'showChat'
+    @addSubView @share = new ButtonViewWithProgressBar
+      cssClass        : 'share fr hidden'
+      buttonOptions   :
+        title         : 'Loading'
+        cssClass      : 'start-session transparent'
+        callback      : @bound 'handleShareButtonClick'
+
 
     if isKoding() and isSoloProductLite()
       isPlanFree (err, isFree) =>

      @avatars.show()  unless collabDisabled


  showInformation: ->

    @status.updatePartial 'Click the plus button above to create a new panel'

  handleCollaborationLoading: ->

    if @share
      @share.setClass        'loading'
      @share.unsetClass      'active not-started'
      @share.button.setTitle 'Loading'
      @share.show()
      @resetProgress()

    @video.hide()


  handleCollaborationEnded: ->

    if @share
      @share.setClass        'not-started'
      @share.unsetClass      'active loading red'
      @share.button.setTitle 'START COLLABORATION'
      @resetProgress()

    @avatars.destroySubViews()
    @updateCollaborationLink ''

    @video.hide()
