#61 minor refactor for copying to clipboard