Fixed the expandable list not to overlap the icon and group text.
Refactored the code for setting up an internal view of the list.