Setting the VIF flags both in add and change case