corrected copy_plot/copy text functions