more rational popup sizing