Handle replacing one popup with another