           @_addButtonMenu.destroy()
           @showAddCredentialFormFor provider
 
-    view.parent.prepend addButton = new KDButtonView
+    @getView().parent.prepend addButton = new KDButtonView
       cssClass  : 'add-big-btn'
       title     : 'Add new credential'
       icon      : yes

        , providerList

        @_addButtonMenu.setCss 'z-index': 10002

  showShareCredentialFormFor: (credential) ->


    view = @getView()
    view.on "ShowShareCredentialFormFor", @bound "showShareCredentialFormFor"

    {provider} = @getOptions()
    @createAddCredentialMenu()  if not provider?


  createAddCredentialMenu: ->

    Providers    = globals.config.providers
    providerList = { }

    Object.keys(Providers).forEach (provider) =>

      return  if Object.keys(Providers[provider].credentialFields).length is 0
