Handle highlighting on the frontend