manage dialog and edit style