correctly highlight on scroll