improved stability of popup