implemented histroy, typing, confirm