       @customColorChanged = no
       @defaultImageChanged = no
       @bgSelectView.thumbsController.deselectAllItems()
+      @utils.defer => @emit 'OptionChanged'
 
     @on 'DefaultImageSelected',=>
+      # @emit 'OptionChanged'
       @customImageChanged = no
       @defaultImageChanged = yes
       @customColorChanged = no
       @defaultColorChanged = no
       @bgColorView.thumbsController.deselectAllItems()
+      @utils.defer => @emit 'OptionChanged'
 
     @on 'CustomImageSelected',=>
       @customImageChanged = yes

      @customColorChanged = no
      @defaultColorChanged = no
      @bgColorView.thumbsController.deselectAllItems()

    @on 'CustomColorSelected',=>
      @customImageChanged = no

      @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
