add spinner and saving selected values to cookies