before starting scrolling