added a spinner but is not working yet