Removed an unnecessary initialize function
Added sizemodechange event to XULDialog