Moved the method formatButton() into ButtonFormat class