updates map when loaded