menu selection bug fixed via document.location.pathname