Mom advice

So my two year old has suddenly became very mouthy. She has started yelling at me and my DH, usually mimicing what i yell at her, ie "that is enough!" or "Go to your room!" It is really kind of cute but I realize I need to squash it before she gets to out of hand. I was treating it like a tantrum and ignoring it, but that does not seem to be the answer. Anyone have any great suggestions?