Refactored centering code and related methods.  Fixed centering error with fitted button sizes.