switch sequence of buttons