switched to wpf