Hello I m new here and looking for advise. I have had dogs in the past and when I moved out of my parents house I decided to get a mini dachsund from a rescue. From what I was told she was constantly kept in kennel other than to breed. She didnt know how to walk on a leash or what a toy was. She was SKINNY when i got her to the point i could see her ribs. She would pee everywhere,was scared of everything and everyone besides me. But getting to the actual problem when, i give her a bath or have company out of no where she decides to pee on the carpet. If i catch her in the act i ll give her a smack on her now plump rump, but even if i dont catch her immediately she will run and hide under the table absolutely terrified shaking excessively. I mean she hides for a hour or two shaking. I dont know how to correct the problem because any other time she extremely well behaved and clingy with me. So help me out please.