add the highlight function for the web