dialog opening and closing changes.