guard against overlong dialog boxes, make width flexible
variable names