Implemented copying of selected text to clipboard