changing spinner clears text fields