Added the ability to undo a tab