fix list mode. add delete mode.