displayed kml and added function to check if map loaded