saving group before adding the relationship