Extending the Hierarchy Macro functionality by bringing two new features: collapsed state and branch expansion from the root node to the specified node