         var itemIndex:int =
             targetStack.getChildIndex(DisplayObject(event.target));
 
-        updateNavItemIcon(itemIndex, Container(event.target).icon);
+        updateNavItemIcon(itemIndex, INavigatorContent(event.target).icon);
     }
     
     /**

import mx.containers.BoxDirection;
import mx.containers.ViewStack;
import mx.core.ClassFactory;
import mx.core.Container;
import mx.core.FlexVersion;
import mx.core.IFactory;
import mx.core.IFlexDisplayObject;

        if (event.relatedObject.parent != targetStack)
            return;

        var newChild:INavigatorContent = INavigatorContent(event.relatedObject);
        var item:Button = Button(createNavItem(itemToLabel(newChild), newChild.icon));
        var index:int = newChild.parent.getChildIndex(DisplayObject(newChild));
        setChildIndex(item, index);
