Undo popup works with changing tabs