fixed a problem with onItemSelected being called during UI initialization