Expand the accordion from the root to the nodes of specified depth

Previously, the accordion displayed only the top level nodes on the tree. 

By this fix, can render the accordion for the specified depth. The value for the depth can be configured.