added getGroupsArray() method
added getGroupsArray() method
before async task