Added the ability to collapse groups