all of these should be "else if" since this function is onPropertyChanged