Young puppies can’t hold their bowels & bladders for long. If you come home to find that they’ve had an accident in there it’s quite possible that they can’t hold it that long. Generally puppies can hold their bladder for about one hour per month of age. So your 3 month old pup can probably only hold their bladder for about 3 hours. If you’re going to be away at work for long periods of time see if you can get a neighbor, relative or dog sitter to come over to let your pup out during the day.
One of the easiest ways to prevent accidents is learning to recognize when your puppy needs to go out. Most puppies will sniff the ground when they’re getting ready to potty, but there are many other more signals that happen prior to sniffing. Puppies that pace, seem distracted and walk away from play are subtly signaling that they have to go out. If your puppy tries to sneak out of the room, take a potty break right away.
Seeking professional help doesn't mean ditching your DIY training program. You can find a professional dog trainer who offers private training sessions, and some trainers even offer online sessions. Many dog owners prefer to join a local dog obedience class so they will be under the supervision of a dog training instructor without the higher cost of private sessions. Plus, classes challenge your dog to learn around the distractions of other dogs.
You may also notice common behavior problems in your dog such as jumping up, barking, or even aggression. The best way to correct any misbehavior is to interrupt it. Shift your dog's attention to something positive. Try running through cues that your dog has mastered followed by rewards. Keep your demeanor cool and confident, and be clear about what you mean.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.