add codebar to related groups