added on/off for graph