move scroll before update dom