Linda - Your dog is 5 and not toilet trained, that's gonna be hard. Different dogs have different temperaments. If spanking isn't working maybe rewards for good behaviour will. Both my dogs wait to go downstairs to pee like 4 times a day... but accidents happen, a scolding usually does the trick. But the training wasn't easy, if you lose your cool, they lose respect.
So use the punishment method esp since you dog demands attention. I put tie the offender to the window (make sure there's so slack so he can move a bit) at the kitchen and sit in the living room, no one is to talk or pay any attention for like 15 mins (up to 30 mins max). Then they get a scolding, the face very pitiful ahahaha like they understand. Don't give up [IMG=http://www.singaporemotherhood.com/forumboard/clipart/happy.gif]
Sigh, such an animal lover.