changing scroll event handler