update the spinner every time the scoped variable changes