Train your dogs to alert you when they need to go outside. Tie a ribbon with a small bell on it to your door. Before taking your dog out, gently swipe their paw on the bell. Eventually, when they want to go out, they will swipe the bell on their own. No more whining or whimpering.