created single update scroll position method