refactored postioning of SVG