added graphicsRef
merged w/ colin
add legend to events