Only expand/collapse when root is selected