changes for IE compatibility and reset lists on cancel of the dialog