clean up header menu code