refactor viewModel svgPanel