fixed the resizing of the buttons