fix issue 518:  show/hide spinner causes CPU taxing on all browsers, it is better to insert/remove it from the DOM

fix issue 518:  

show/hide spinner causes CPU taxing on all browsers, it is better to insert/remove it from the DOM