dialog window and freeze