change logic show popup window