hightlight search terms and revert to document position on overlay close