corrected isHeaderMenuActive function with new service