Wouldn't it make more sense that the popup is created with a title, a content and a position, and that `open` and `close` can then be called on the popup object? It sounds weird to me that `open` actually (re-)create the popup.