added some tweaks when container wnd is set