adds copy to clipboard functionality