Added expand/collapse all functionality. remove unwanted expand direction in header node