Some adjustments to the invalidation process.
Further improvements to the invalidation mecahnism.
Removed uneeded namespaces for flags
Some Comments of ViewElement