 
     @setClass "kdhiddentab"
     @unsetClass "active"
-    @parent.getElement().removeChild @getElement() if @active
+
+    if @active and @getOption "removePaneOnTabChange"
+      @parent.getElement().removeChild @getElement()
+
     @active = no
     @emit "KDTabPaneInactive"
 


  constructor:(options = {},data)->

    options.hiddenHandle ?= no      # a Boolean
    options.name        or= ""      # a String
    defaultCssClass       = "kdtabpaneview kdhiddentab #{KD.utils.slugify(options.name.toLowerCase())} clearfix"
    options.cssClass      = KD.utils.curry defaultCssClass, options.cssClass

    super options, data



    @setClass "active"
    @unsetClass "kdhiddentab"

    if @getOption "removePaneOnTabChange"
      @parent.getElement().appendChild @getElement()

    @active = yes
    @emit "KDTabPaneActive"
    KD.utils.defer =>
