close popup when injected