change sequence of buttons