partial working on copy to clipboard functionality