Good for you to do this for the dogs.
I always consider the dogs in shelters the lucky one.
Its the ones who are homeless and living by their wits I worry so very much about.
If this is a recent change, has the dog been seen by a vet? When a dog is in pain they will often have a behavorial change and be more grouchy and not like being touched.