rearange markup of the dialog popup #11
fixing html-ids in dialog select elements
escape every variable value in html context