updates svg instead of appending