Optimized Secondary header submenu right_align code logic