Switched to wpf