updated the scroll window