add Undo/Redo and line Numbers