Made popups closeable.