moving app to WPF