update history file with new changes