Adjusted navigation menu display/hide to switching between css classes.