check for a trailing slash
move the position update into the view
render templates in an svg tag for name-spacing the elements correctly