fixing the popup not showing up