this deactivates the map upon leaving