What is the cause of good dog behavior? In the fewest words, The thing we do for and with the dog.
If we take it for granted, dogs learn by forming associations, and they can develop habits. Then, the best way to cause good behavior is to help the dog learn the correct association and form good habits.
Associations are formed by Event A, followed by Event B, consistently. An example is in A; the sound of a click; in B, the dog is presented with a treat.
The only way for us to do that is self-discipline.
Another example: Event A is calming down, and Event B is leaving the crate.
WE must be self-disciplined to ensure we do the correct things to help our dogs calm down before they leave the crate. You will know when they understand when you see them taking action to calm themselves before you do anything to help.
The steps must be performed precisely and consistently hundreds of times before the dog knows how to proceed.
This continues for 30 days or until the dog forms a habit of leaving the crate calmly.
The only way to complete this task is through self-discipline.