People tend to reward their dogs for bad behaviors by giving them attention. Then, they tend to ignore them when the dog is calm, happy and respectful.
This teaches your dog that they have to act in a negative way to get your attention. Even if it’s bad attention from you, and you’re yelling at them, they’re glad to get it. When they’rebeing sweet, they don’t think you care about that. So my tip for you is to pet and spend time with your dog when they’re acting the way you want them to.
Then, if they’re acting in ways you dislike, don’t give them too much energy for that. That’s how they think they get your attention. We want to send the message to our dog that we like it when they’re calm and relaxed. Make the right thing easy for your dog.