fix buttons groups toggling