add history add and graph