fix result display and highlighting