put the scroll event listener first