save when copy is clicked