Ordered viewGroups by groupName and made similar chanes to android functions