hiding the location swither if nav fails