add option to specify a className for the popupTemplate holder
add optional disposal callback