Swap the buttons when an action is completed