swap layout of buttons