Added listeners to the spinner