Add pen, undo and redo