Layout changes to buttons based on center line