Refine dataviewmode, Remove internal events and duplicates