added window/svg resizing