Adjust positions of buttons.