Made connection button sizes more general (was not good on linux)