Moved groupCode to activity