Hi
My dogs used to wee on the floor when pups but once they had been told off and patted firmly a few times thay had stopped.
You need to make sure they know where they're place to go is.
If they wee on your floor then you need to catch them as soon as they have done it and make them smell it!
If you make your telling of onto a NO and a firm pat then they will not like it and should be submissive.
After making them smell it, tell them off like that above then take them to your place where they are supposed to do it then tell then to do it there.
You can make your word to do there stuff something small and easy to remember, something like BUSY.
Then leave them outside.
If this doesn't work the god help you!!!!!
P.S. Is your dog a beagle by any chance?