updating history handling