making content wrapper classes more robust, can now handle being bested inside tabs