adding enter and leave event for SOD, also improve visualizer for displaying event