Dialog & Toolbar auto-close