Updating the button layout.