added exit and reset button to wpf