set dialog attributes