added spinner while waiting for request