Swap cancel and analyse buttons on click