preemptively update svgs and remove unnecesary groups