         barLabel.setTextFormat(defaultTextFormat);
         barLabel.x = 2;
         barLabel.y = 1;
-
-        if(isStrong)
+        
+        if (isStrong)
         {
             //tools
             var tools:Sprite = new Sprite();
             tools.name = "tools";
-
+            
             //search bg
             var searchBg:Shape = new Shape();
             searchBg.graphics.beginFill(0x94959D);
             searchBg.graphics.drawRect(0, 0, 120, 17);
             searchBg.graphics.beginFill(0xFFFFFF);
             searchBg.graphics.drawRect(1, 1, 118, 15);
-
+            
             //search text
             searchLabel = new TextField();
             searchLabel.type = TextFieldType.INPUT;
             searchLabel.width = 120;
             searchLabel.height = 18;
             searchLabel.defaultTextFormat = defaultTextFormat;
-            searchLabel.addEventListener(Event.CHANGE, updateHtmlText);
-            searchLabel.addEventListener(FocusEvent.FOCUS_IN, searchTextFocusEventHandler);
-            searchLabel.addEventListener(FocusEvent.FOCUS_OUT, searchTextFocusEventHandler);
-
+            searchLabel.addEventListener(Event.CHANGE, invalidateHtmlText);
+            searchLabel.addEventListener(FocusEvent.FOCUS_IN, 
+                searchTextFocusEventHandler);
+            searchLabel.addEventListener(FocusEvent.FOCUS_OUT, 
+                searchTextFocusEventHandler);
+            
             searchLabelBg = new TextField();
             searchLabelBg.width = 120;
             searchLabelBg.height = 18;

    {
        var pin:DisplayObject = Sprite(e.target).getChildByName("pin");
        var unpin:DisplayObject = Sprite(e.target).getChildByName("unpin");

        pin.visible = !pin.visible;
        unpin.visible = !unpin.visible;

        autoExpand = pin.visible;
    }

    /**
     * change the output size.
     * @param evt

        _parent = this.parent;
        stage.addEventListener(Event.RESIZE, fitToStage);
        stage.addEventListener(KeyboardEvent.KEY_UP, shortcutKey);
        
        titleBar.getChildByName("bar").addEventListener(MouseEvent.CLICK, toggleCollapse);
        
        fitToStage();
        
        if (isStrong && history.length > 0)
        {
            invalidateHtmlText();
        }
    }
    
    /**
     * The Output removed event handler.
     *
