Fix loading icon issues

On multiple ajax calls without a page refresh, the loading spinner would run continuously after two or more requests were made. The icon also had cosmetic issues that were corrected.