re-wrote copy_plot/copy_text functions