Don't scold her and don't ever hit her. Not only doesn't it work, but with one loud scream or slap, you can undo all the other things above that were working so well for you. Cats, like people with obsessive-compulsive disorder, may have a need to do something several times in a row or in a certain way. But unlike people, they can't check a door five times after they go out to if it's locked. Prozac also works for certain types of aggression as well as depression.
Cats become upset for various reasons.
Since a cat can't directly tell you he's upset over these things, he may inappropriately urinate, defecate, or howl. Incidentally, if your cat is displaying these symptoms, and you're on Prozac, don't give your cat your medicine because the dosages are different. And if you're having a Prozac moment, don't take your cat's pill for the same reason. Some cats will attack not the hand that feeds them but the one that pets them. It's often hard to tell whether they really will attack or whether they're just posturing.