cleaned up button width code