     @img.$().attr "src", "/images/icn-appcatalog.png"
 
     @compile = new KDView
+    @delete = new KDView
 
   click : (event)->
 

    @img.$().attr "src", "/images/#{data.icon}"

    @compile = new KDView
    @delete  = new KDCustomHTMLView
      tagName  : "span"
      cssClass : "icon delete"
      tooltip  :
        title  : "Click to delete"
      click    : =>
        @delete.hideTooltip()
        modal = new KDModalView
          title          : "Delete App"
          content        : "<div class='modalformline'>Are you sure you want to delete this app?</div>"
          height         : "auto"
          overlay        : yes
          buttons        :
            Delete       :
              style      : "modal-clean-red"
              loader     :
                color    : "#ffffff"
                diameter : 16
              callback   : =>
                @showLoader()
                @getSingleton("kodingAppsController").removeShortcut data.name, (err)=>
                  modal.buttons.Delete.hideLoader()
                  modal.destroy()
                  @hideLoader()
                  if not err then @destroy()

  click : (event)->

    return if $(event.target).closest('.icon-container').length > 0


    if type is 'koding-app'
      @showLoader()
      appManager.openApplication path, => @hideLoader()

    return no
