Initial version of WPF GUI code