Implemented History copying to the clipboard