be the alpha dog and let it know it won't be tolerated. making a loud noise and a dominant posture is sufficient. catch while it's doing something you don't like. A water pistol works well too. Never hit your dog. it will make them hand shy or worse.