put the buttons in their correct position