//trending button
 private void btnShowTrending_Click(object sender, RoutedEventArgs e)
 {
     //declare new trending window
     TrendingWindow tr = new TrendingWindow();
     //show trending window
     tr.ShowDialog();
 }
 //quit button
 private void btnQuit_Click(object sender, RoutedEventArgs e)
 {
     //create and show new trending window
     TrendingWindow tr = new TrendingWindow();
     tr.ShowDialog();
     //close window
     this.Close();
 }