setting groupId before onCreate is called