Add loading animation while waiting for ajax callback