Feeling horrible

Polly • 💙
So my dog is house trained and also uses wee wee pads. He's two and he's a Maltese I was so mad this morning cuz I went out to the living room and noticed around my table and stroller he had marked with pee and there was poop under the table?! I was really mad and spanked him and yelled at him and ignored him
And now he is like shaking and looking at me like I'm a killer or something 😰😰I don't get it I mean he is trained why the hell would he do that? Do you think it could have to do with the pregnancy I'm 34 weeks 3 days so it's not like I'm newly pregnant and I just feel awful now  cuz I adore him but he does such pathetic things sometimes 😡