Bug 115: ajax loading gif fix

* all specs pass
* please delete this branch after merge