added all high priority

added onclose, changte confirm close text, create elements without html,
and custom dialog