// Listen for nav clicks

document.body.addEventListener('click', function (event) {
  if (event.target.classList.contains('nav-link')) {
    var viewId = '#' + event.target.dataset.view + '-view';
    removeSelectedShow();
    event.target.classList.add('is-selected');
    document.querySelector(viewId).classList.add('show');
  }
});

function removeSelectedShow () {
  if (document.querySelector('.is-selected')) {
    document.querySelector('.is-selected').classList.remove('is-selected');
  }
  document.querySelector('.show').classList.remove('show');
}

// Listen for nav clicks

document.body.addEventListener('click', function (event) {
  if (classContains('nav-link') || classContains('nav-footer-link')) {
    var viewId = '#' + event.target.dataset.view + '-view';
    removeSelectedShow();
    event.target.classList.add('is-selected');
    document.querySelector(viewId).classList.add('show');
  }
});

function classContains (className) {
  return event.target.classList.contains(className)
}

function removeSelectedShow () {
  if (document.querySelector('.is-selected')) {
    document.querySelector('.is-selected').classList.remove('is-selected');
  }
  document.querySelector('.show').classList.remove('show');
}

Add helper function and look for about button class also
Add helper function and look for about button class also
