[layouts] handle tree manager initialization with tabs case