virtual dom view working