change the way the spinner values are gathered