popup_autoclosable: specs refactoring