Some code cleanup
Add support for touch dragging svg