private void Button_Click(object sender, RoutedEventArgs e)
        {//TODO: make this a lot nicer!!!
            //did this for speed.
            thankYouTb.Text = "";

            FeedbackViewModel fb = new FeedbackViewModel(feedbackTb.Text, leagueTb.Text, emailTb.Text);
            FeedbackViewModel.saveFeedback(fb);
            feedbackTb.Text = "";

            thankYouTb.Text = "Thank You For Your Feedback!";
        }
        /// <summary>
        /// saves any error created by the software.
        /// </summary>
        /// <param name="e"></param>
        public static void saveFeedback(FeedbackViewModel feedback)
        {
            Task<bool>.Factory.StartNew(
                          () =>
                          {
                              DirectoryInfo dir = new DirectoryInfo(ScoreboardConfig.SAVE_FEEDBACK_FOLDER);
                              if (!dir.Exists)
                                  dir.Create();

                              System.Xml.Serialization.XmlSerializer writer = new System.Xml.Serialization.XmlSerializer(feedback.GetType());
                              string filePath = ScoreboardConfig.SAVE_FEEDBACK_FOLDER + "Feedback" + DateTime.UtcNow.ToString("yyyyMMddHHmmss") + ".xml";
                              string filePathEncrypted = ScoreboardConfig.SAVE_FEEDBACK_FOLDER + "Feedback" + DateTime.UtcNow.ToString("yyyyMMddHHmmss") + ".xml";
                              System.IO.StreamWriter file = new System.IO.StreamWriter(filePath);

                              writer.Serialize(file, feedback);
                              file.Close();
                              file.Dispose();

                              Encryption.EncryptFiletoFile(filePath, filePathEncrypted);
                              string filePathCompressed = Compression.Compress(new FileInfo(filePathEncrypted));

                              bool isUploaded = uploadFeedbackToServer(filePathCompressed);
                              if (isUploaded)
                              {
                                  Thread.Sleep(2000);
                                  FileInfo fileInfo = new FileInfo(filePathCompressed);
                                  if (fileInfo.Exists)
                                      fileInfo.Delete();

                              }

                              FileInfo file1 = new FileInfo(filePathEncrypted);
                              if (file1.Exists)
                                  file1.Delete();
                              FileInfo file2 = new FileInfo(filePath);
                              if (file2.Exists)
                                  file2.Delete();
                              return true;
                          });

        }