add action to graph