Updated undo, history and tabs