refactored menu logic to add handling of active class based on routing described in _config.yml files