separate the open and the setcontent functionality in the closable popup + JSDoc change