added improved copy and paste to clipboard