Added code to display spinner when waiting for an API response

A spinner is now displayed when waiting on an API response to
delete/complete operations.