Collapse/expand activities graph on endpoint click