fixed selection and moving of text