updating the scroll