added switch to toggle location services