Added in logic to only have the map load once, instead of everytime you click the map page tab