History update automatically