adding copy to clipboard function