Update direction and SVG