removed console logs
added spinner