almost figured out canceling popups