adding text selection and copy to clipboard