update history form cpp