feature disappears after closing dialog box