restore detached/ bgShow == modalShow