add undo function.
add status bar.