Added loading spinner. Moved popup dialog outside of map div