dance to another tune
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.
Categories: 
 
Source: A Dictionary of American Idioms
