updated how svg is appended