You don't say if they are puppies or adults, but assuming that both of them have a clean bill of health from the vet, and don't have urinary infections, then the basic rules apply. For starters, ditch the pads, and train them to go outside. Take them out as soon as they wake up, after they've eaten, after they've had a big drink of water, after they've been playing for a while, and every 20 minutes or so just because.
If you aren't around to keep an eye on them, put them in separate crates that are just big enough for them to stand, sit, and lay down in comfortably. If it's too large, they will sleep in one corner and potty in another. If they pee on bedding, then no bedding in the crates (there are solid, waterproof pads if you want).
He's not peeing for attention, and he only pees on the floor when you're not around because he's learned that peeing when you are around makes you mad. The "guilty face" and tucked, wagging tail are both what are called appeasement gestures, and are basically him asking you to please not yell at him.
So, stop using the pads, take them outside about a million times a day, and crate (with no bedding to pee on) if you can't be watching them.