I recommend using a dialog. Give it an ID so that one copy of it is open at a time.

    dialog({title: 'Dialog title', id: 'favorite-portals-list', html: "<div id='favorite-portal-list'>" + output + "</div>"})