Allow to override popup options; return reference to popup dialog