popup: specs refactoring