Was closing with dialog window