toggle groups, it works but code should be refacroted