popup: autoclosable in nested popups