adding copy to clipboard functionality