add undo to the scale effect