Extension now remember state. Resolves #17.
Close button should use main function.
Attach all listeners on panel element.