I am glad you realize that she is acting out to get your attention. You are doing that right! But if you continue to punish her for the behavior...she is going to keep acting out badly to get your attention. Negative attention is better then no attention.
Can I suggest letting her help you make dinner? Let her set the table, and stir the macaroni, and talk to her the entire time. Make it "mommy and me" time.
If it isn't possible for her to help, give her something to do in the kitchen, (color, playdoh, etc) that she can do while you are cooking. You can have a great conversation while you cook.
While dinner is cooking, or right after dinner, you have to find a way to make time for her. Positive time. It doesn't take much.
Right when you see her START to act up, grab a book and ask her to come read with you. Make sure you tell her that you like they way she is acting, BEFORE she acts up. And that because she was being good, you are going to do this with her. This will help her to realize that "hey, mom likes when I am good, and she will read to me if I am."
I tell my kids," I really like the way you put your plate in the sink" or, "I like how quiet you were while I talked to daddy" So now we are going to do this.....
Also try to get a routine going for her. Let her know what the routine will be. And stick to it. Every night. This way she knows that she has your undivided attention for this amount of time. It doesn't have to be long. A bath, a book and tuck in time only takes 20-30 minutes.
The KEY IS MAKING IT QUALITY TIME NOT QUANTITY TIME.
I know it is hard, I see it every day in my job. But you really don't want her to start acting out to get attention. You REALLY don't. lol lol lol
Good luck and I hope I have helped. Sometimes I feel like I am lecturing when I tell people this, but it really does work!
Lindy