refactored SVG rendering to support GUI controls, a bunch of controls implemented