implementing copy to clipboard