[dance to another tune] {v. phr.}
To talk or act differently, usually better because things have changed; be more polite or obedient because you are forced to do it.
* /Johnny refused to do his homework but punishment made him dance to another tune./
Compare: CHANGE ONE'S TUNE, SING A DIFFERENT TUNE.