adding spinner while talking to the backend