adjust layout of buttons