Updated menuHeader to resolve undefined index