First attempt at dynamic tab redo on undo button