added spinner with states