add buttons to graph