making the header menu work well