fixing the popup