kludgy hidden element width code for editor added. working on improving it.
beforeopen event added for dialogs. tool button alignment fixed.