moved logic to header-nav, triggered by event