add layout styles for metadata of states and events to graph