making some changes to spinner