cleaned up wpf, added clear button