stop spinner when server returns response