Change _toggle to _onLocation add location as a parameter instead of redefining as a variable