fix overlay to work while scrolling