expand and collapse on the nodes (only single level expand-collapse)