     view = @getView()
     view.on "ShowShareCredentialFormFor", @bound "showShareCredentialFormFor"
 
+    {provider} = @getOptions()
+    @createAddCredentialMenu()  if not provider?
+
+
+  createAddCredentialMenu: ->
+
+    Providers    = globals.config.providers
     providerList = { }
 
-
-    Providers    = globals.config.providers
     Object.keys(Providers).forEach (provider) =>
 
       return  if Object.keys(Providers[provider].credentialFields).length is 0

          @_addButtonMenu.destroy()
          @showAddCredentialFormFor provider

    view.parent.prepend addButton = new KDButtonView
      cssClass  : 'add-big-btn'
      title     : 'Add new credential'
      icon      : yes

        , providerList

        @_addButtonMenu.setCss 'z-index': 10002


  showShareCredentialFormFor: (credential) ->

