trying to fix external popup layout - issue #146
Fix for issue #158