refactor editrealtime visualisation
extract css from code, to make it easier to reuse in other vis.