Updating layout for buttons