debugged onItemSelected for spinner to prevent spinner from being selected everytime the view is updated