So I went away for 4 1/2 days and left the dog with my husband. He was 99% house trainied and now that i have been home I am still on his every three hour potty break schedule, but he is pooping all over my house and peeing

I dont know what happened he was doing so good and now all of a sudden were having problems. Nothing has changed food is still the same and so are potty breaks. What should I do? What do ya think is wrong?