toggle menu on page changes