Small and simple, having the redirecting ip and port being put in AFTER the person clicks "yes, i wanna change servers now" that way if they click "no way dude!" they can rejoin the server they were just in.
The button's don't say exactly what i wrote here, lol..