added auto copy to clipboard functionality