added undone, sort.
bug fix in done(cannot undo).
bug fix in done(from ***  to ***)