update locations module to allow going back and forth between map and perspective modes