remove wpf window previously used for displaying the data