Improve text selection and right click