restore completion and history