Beginning of wpf UI