Ukraine shifts momentum in war