Add spinner during API requests.