setup scoll frunction to fire on event