update editor on highlight