added grouped functionality to toggle
Merge pull request #3612 from masterbee/toggletweak

added grouped functionality to toggle