added copying to clipboard functionality