According to recent research our pet dogs are always in training. They are watching you and emulating your behaviour. So if your dog is misbehaving don’t yet at the dog, start correcting your own behaviours because it is learning from you. Apparently they learn what cues will get them food, what behaviours are tolerated and what are absolutely not tolerated and they act according.
The article below is instructive