Talk to vet. Maybe they need to be fixed.
Go to Lowe's or Home Depot and they sell a pet repellent .
It works great.
Cats don't like the noise crumpled aluminum makes. Leave it on furniture when you aren't in the room.
Clean the furniture well to remove all old sent of urine. Dogs will keep coming back. Then spray a product like behave spray. Dogs dont like it.