refactor CreateNewCommandItem, added CreateHistory