introduces the copy to clipboard function