adding spinner for time delay