added cancel functionality to Spinner