       callback  : =>
         contentWrapper = @getDelegate().groupContentWrapperView or @getDelegate().profileContentWrapperView
         contentWrapper.unsetClass 'edit'
-
-    @saveButton = new KDButtonView
-      title     : 'Save Changes'
-      cssClass  : 'save-button clean-gray'
-      loader    :
-        color   : '#444'
-        diameter : 12
-      callback :=>
-        if @group
-
-          @saveButton.showLoader()
-
-          if @customColorChanged
-            defaultIndexItem = @bgColorView.thumbsController.selectedItems.first
-
-            if defaultIndexItem
-              pickedColor = defaultIndexItem.color.picker.getValue() or 'fff'
-              log pickedColor
-              @group.setBackgroundImage 'customColor', pickedColor, (err,res)=>
-                @saveButton.hideLoader()
-                unless err
-                  new KDNotificationView
-                    title : "Background updated with custom color"
-                  @customColorChanged = no
-
-          else if @customImageChanged
-            url = @bgSelectView.thumbsController.selectedItems.first.customUrl \
-            or @bgSelectView.thumbsController.selectedItems.first.getData().url
-            if url
-              @group.setBackgroundImage 'customImage', url, (err,res)=>
-                @saveButton.hideLoader()
-                unless err
-                  new KDNotificationView
-                    title : "Background updated with custom image"
-                  @customImageChanged = no
-
-          else if @defaultImageChanged
-              defaultIndexItem = @bgSelectView.thumbsController.selectedItems.first
-
-              if defaultIndexItem
-                defaultIndex = defaultIndexItem.getData().dataIndex or 0
-                @group.setBackgroundImage 'defaultImage', defaultIndex, (err,res)=>
-                  @saveButton.hideLoader()
-                  unless err
-                    new KDNotificationView
-                      title : "Background updated to #{defaultIndexItem.getData().title}"
-                    @defaultImageChanged = no
-
-          else if @defaultColorChanged
-              defaultIndexItem = @bgColorView.thumbsController.selectedItems.first
-
-              if defaultIndexItem
-                defaultHex = defaultIndexItem.getData().colorValue or 0
-                @group.setBackgroundImage 'defaultColor', defaultHex, (err,res)=>
-                  @saveButton.hideLoader()
-                  unless err
-                    new KDNotificationView
-                      title : "Background updated to color #{defaultIndexItem.getData().title}"
-                    @defaultColorChanged = no
-
-          else
-            # no changes
-            @saveButton.hideLoader()
 
     @attachListeners()
     @addSettingsButton()


    @thumbsController.listView.on 'CustomImageSelected', (view)=>
      @getDelegate().emit 'CustomImageSelected', view

  decorateList:(group={})->
    backgroundData = @getDelegate().getBackgroundData group

      @defaultImageChanged = no
      @defaultColorChanged = no
      @bgSelectView.thumbsController.deselectAllItems()
      @utils.defer => @emit 'OptionChanged'

    @on 'OptionChanged',=>

        if @group

          if @customColorChanged
            defaultIndexItem = @bgColorView.thumbsController.selectedItems.first

            if defaultIndexItem
              pickedColor = defaultIndexItem.color.picker.getValue() or 'fff'
              log pickedColor
              @group.setBackgroundImage 'customColor', pickedColor, (err,res)=>
                unless err
                  new KDNotificationView
                    title : "Background updated with custom color"
                  @customColorChanged = no

          else if @customImageChanged
            url = @bgSelectView.thumbsController.selectedItems.first.customUrl \
            or @bgSelectView.thumbsController.selectedItems.first.getData().url
            if url
              @group.setBackgroundImage 'customImage', url, (err,res)=>
                unless err
                  new KDNotificationView
                    title : "Background updated with custom image"
                  @customImageChanged = no

          else if @defaultImageChanged
              defaultIndexItem = @bgSelectView.thumbsController.selectedItems.first

              if defaultIndexItem
                defaultIndex = defaultIndexItem.getData().dataIndex or 0
                @group.setBackgroundImage 'defaultImage', defaultIndex, (err,res)=>
                  unless err
                    new KDNotificationView
                      title : "Background updated to #{defaultIndexItem.getData().title}"
                    @defaultImageChanged = no

          else if @defaultColorChanged
              defaultIndexItem = @bgColorView.thumbsController.selectedItems.first

              if defaultIndexItem
                defaultHex = defaultIndexItem.getData().colorValue or 0
                @group.setBackgroundImage 'defaultColor', defaultHex, (err,res)=>
                  unless err
                    new KDNotificationView
                      title : "Background updated to color #{defaultIndexItem.getData().title}"
                    @defaultColorChanged = no

  viewAppended:->
    super
