changed onscroll event for button