[DF-2264] small refactoring of dialog window