NEED to hide the spinner and recall it for onmap and offmap fucntions