added layouting of the buttons