added location toggling.