disable href attribute after loading map; code cleanup