Currently selected tab is no longer reset when a new TreeNode is clicked