set updating flag to YES on updating