 
     credential = item.getData()
 
-    modal = KDModalView.confirm
-      title       : "Remove credential"
-      description : "Do you want to remove ?"
+    # Since KDModalView.confirm not passing overlay options
+    # to the base class (KDModalView) I had to do this hack
+    # Remove this when issue fixed in Framework ~ GG
+    overlay = new KDOverlayView cssClass: 'second-overlay'
+
+    modal   = KDModalView.confirm
+      title       : 'Remove credential'
+      description : 'Do you want to remove ?'
       ok          :
-        title     : "Yes"
-        callback  : => credential.delete (err) =>
+        title     : 'Yes'
+        callback  :  => credential.delete (err) =>
           modal.destroy()
           @emit 'ItemDeleted', item  unless showError err
+
+    modal.once   'KDObjectWillBeDestroyed', overlay.bound 'destroy'
+    overlay.once 'click',                   modal.bound   'destroy'
+
+    return modal
 
 
   shareItem: (item) ->

            title: "An error occurred"

        new KDModalView
          title    : credential.title
          subtitle : credential.provider
          content  : "<pre>#{cred}</pre>"

  checkIsBootstrapped: (item) ->


kd                        = require 'kd'
KDListView                = kd.ListView
KDModalView               = kd.ModalView
KDOverlayView             = kd.OverlayView
KDNotificationView        = kd.NotificationView

showError                 = require 'app/util/showError'
