Undo button swapping