I use a baby gate to contain the pups inside. We use the garage door rather than the front door so the gate is at the garage door. The front door is only used for guests and packages. They understand not to run out of the front door but are very curious when someone is there and I still keep a VERY close eye on them.
I'm sorry to hear about your family friend's dog.