fix popups: heavy/medium: restore state of factory after popup creation + delegate...