tweak menu to display title link only when passed var