How to stop yelling at my kids

I yell at my kids and sometimes even use bad words. I feel out of control when this is happening. My kids dont respect me and sometimes even laugh at me. They yell back at me. I had gone over 3 weeks without a blow uo then today it started again. It feels the same as dieting trying over and over again but not getting anywhere.
Any suggestions?